package com.ddone.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("tb_user")
@ApiModel(
        value = "User",
        description = "用户信息"
)
public class User{

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "用户主键ID")
    private Integer id;

    @ApiModelProperty("用户姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("性别")
    private String gender;


    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("QQ信息")
    private String qq;

    @ApiModelProperty("邮箱信息")
    private String email;

    @ApiModelProperty("登录用户名")
    private String username;

    @ApiModelProperty("手机号")
    private String phone;
}
